package com.jiao.dao;

import com.jiao.bean.TTrade;
import com.jiao.bean.TTradeQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TTradeDao {
    int countByExample(TTradeQuery example);

    int deleteByExample(TTradeQuery example);

    int deleteByPrimaryKey(Integer id);

    int insert(TTrade record);

    int insertSelective(TTrade record);

    List<TTrade> selectByExample(TTradeQuery example);

    TTrade selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") TTrade record, @Param("example") TTradeQuery example);

    int updateByExample(@Param("record") TTrade record, @Param("example") TTradeQuery example);

    int updateByPrimaryKeySelective(TTrade record);

    int updateByPrimaryKey(TTrade record);
}